package me.zd.tool.hardlink.view;

import javax.swing.filechooser.FileFilter;
import java.io.File;

public class PropertiesFileFilter extends FileFilter {
    public static final PropertiesFileFilter INS = new PropertiesFileFilter();

    private PropertiesFileFilter() {
    }

    @Override
    public boolean accept(File f) {
        return f.isDirectory() || f.getName().endsWith(".properties");
    }

    @Override
    public String getDescription() {
        return "*.properties";
    }
}
